<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.opensymphony.xwork2.util.ValueStack" %>
<%@ page import="exam.ExamVar" %>
<%
  ValueStack vs = (ValueStack) request.getAttribute("struts.valueStack");
  int score = (Integer) vs.findValue("score");

  String msg = score + "分，" + (score >= ExamVar.PASS_SCORE ? "及格了。</br>恭喜你。" : "不及格。<br/>下次继续努力。");
%>

<script>

  //成功
  parent.EXAM.sendExamnMsg("<%=msg%>")
  window.setTimeout(function(){
  	  	parent.location = '../login.jsp';
  	  },10000)
    //失败
    //parent.EXAM.sendExamnMsg("交卷失败！<a href='javascript:void(0)' onClick='EXAM.sendExam(false)' >点击重新交卷</a>")
</script>